import request from '@/utils/request'

// 获取手续费
export function getChargeApi(pageNum, pageSize, chargeName) {
    return request({
        url: '/sys/params/charge',
        method: 'get',
        params: { pageNum, pageSize, chargeName }
    })
}

// 获取租户信息
export function getTenantApi() {
    return request({
        url: '/sys/params/charge/tenant',
        method: 'get',
    })
}
// 添加手续费
export function addChargeApi(data) {
    return request({
        url: '/sys/params/charge',
        method: 'post',
        data
    })
}
// 修改手续费
export function editChargeApi(id, data) {
    return request({
        url: `/sys/params/charge/${id}`,
        method: 'put',
        data
    })
}
// 删除手续费
export function delChargeApi(id) {
    return request({
        url: `/sys/params/charge/${id}`,
        method: 'delete',
    })
}